package com.lib.common.utils;

import android.content.Context;
import android.content.DialogInterface;
import android.support.v7.app.AlertDialog;

public class AlertDiloagHelper {
    static public void showErrorMsg(Context pContext, String content){
        new AlertDialog.Builder(pContext).setMessage(content).setPositiveButton("确定", new DialogInterface.OnClickListener() {
            @Override
            public void onClick(DialogInterface pDialogInterface, int pI) {

            }
        }).show();
    }

    static public void showMsg(Context pContext, String content, DialogInterface.OnClickListener pOnClickListener){
        new AlertDialog.Builder(pContext).setMessage(content).setPositiveButton("确定", pOnClickListener).show();
    }
}
